package com.sasis.model;
// Generated 2007-8-7 10:00:48 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_GIFT"
 *     
 */

public class VipServiceGift extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private Integer category;
    private String flowerDesc;
    private Integer flowerNumber;
    private BigDecimal flowerFee;
    private String flowerMemo;


    // Constructors

    /** default constructor */
    public VipServiceGift() {
    }

    
    /** full constructor */
    public VipServiceGift(Integer vipServiceSheetId, Integer category, String flowerDesc, Integer flowerNumber, BigDecimal flowerFee, String flowerMemo) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.category = category;
        this.flowerDesc = flowerDesc;
        this.flowerNumber = flowerNumber;
        this.flowerFee = flowerFee;
        this.flowerMemo = flowerMemo;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="CATEGORY"
     *             length="22"
     *         
     */

    public Integer getCategory() {
        return this.category;
    }
    
    public void setCategory(Integer category) {
        this.category = category;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLOWER_DESC"
     *             length="1024"
     *         
     */

    public String getFlowerDesc() {
        return this.flowerDesc;
    }
    
    public void setFlowerDesc(String flowerDesc) {
        this.flowerDesc = flowerDesc;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLOWER_NUMBER"
     *             length="22"
     *         
     */

    public Integer getFlowerNumber() {
        return this.flowerNumber;
    }
    
    public void setFlowerNumber(Integer flowerNumber) {
        this.flowerNumber = flowerNumber;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLOWER_FEE"
     *             length="18"
     *         
     */

    public BigDecimal getFlowerFee() {
        return this.flowerFee;
    }
    
    public void setFlowerFee(BigDecimal flowerFee) {
        this.flowerFee = flowerFee;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLOWER_MEMO"
     *             length="1024"
     *         
     */

    public String getFlowerMemo() {
        return this.flowerMemo;
    }
    
    public void setFlowerMemo(String flowerMemo) {
        this.flowerMemo = flowerMemo;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("category").append("='").append(getCategory()).append("' ");			
      buffer.append("flowerDesc").append("='").append(getFlowerDesc()).append("' ");			
      buffer.append("flowerNumber").append("='").append(getFlowerNumber()).append("' ");			
      buffer.append("flowerFee").append("='").append(getFlowerFee()).append("' ");			
      buffer.append("flowerMemo").append("='").append(getFlowerMemo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceGift) ) return false;
		 VipServiceGift castOther = ( VipServiceGift ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getCategory()==castOther.getCategory()) || ( this.getCategory()!=null && castOther.getCategory()!=null && this.getCategory().equals(castOther.getCategory()) ) )
 && ( (this.getFlowerDesc()==castOther.getFlowerDesc()) || ( this.getFlowerDesc()!=null && castOther.getFlowerDesc()!=null && this.getFlowerDesc().equals(castOther.getFlowerDesc()) ) )
 && ( (this.getFlowerNumber()==castOther.getFlowerNumber()) || ( this.getFlowerNumber()!=null && castOther.getFlowerNumber()!=null && this.getFlowerNumber().equals(castOther.getFlowerNumber()) ) )
 && ( (this.getFlowerFee()==castOther.getFlowerFee()) || ( this.getFlowerFee()!=null && castOther.getFlowerFee()!=null && this.getFlowerFee().equals(castOther.getFlowerFee()) ) )
 && ( (this.getFlowerMemo()==castOther.getFlowerMemo()) || ( this.getFlowerMemo()!=null && castOther.getFlowerMemo()!=null && this.getFlowerMemo().equals(castOther.getFlowerMemo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getCategory() == null ? 0 : this.getCategory().hashCode() );
         result = 37 * result + ( getFlowerDesc() == null ? 0 : this.getFlowerDesc().hashCode() );
         result = 37 * result + ( getFlowerNumber() == null ? 0 : this.getFlowerNumber().hashCode() );
         result = 37 * result + ( getFlowerFee() == null ? 0 : this.getFlowerFee().hashCode() );
         result = 37 * result + ( getFlowerMemo() == null ? 0 : this.getFlowerMemo().hashCode() );
         return result;
   }   





}
